package com.iyundao.io.mapper;

import com.iyundao.io.model.ActivityModelLookBack;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface ActivityModelLookBackCustomMapper {

    @Update("update activitymodellookback set activitytitle=#{activitytitle,jdbcType=VARCHAR}, activitycontent=#{activitycontent,jdbcType=VARCHAR}, activitystarttime=#{activitystarttime,jdbcType=TIMESTAMP}, " +
            "activityendtime=#{activityendtime,jdbcType=TIMESTAMP}, activitysignstarttime=#{activitysignstarttime,jdbcType=TIMESTAMP}, activitysignendtime=#{activitysignendtime,jdbcType=TIMESTAMP}, activitylongitude=#{activitylongitude,jdbcType=DOUBLE}, " +
            "activitylatitude=#{activitylatitude,jdbcType=DOUBLE}, activitysitename=#{activitysitename,jdbcType=VARCHAR}, activitycreatetime=#{activitycreatetime,jdbcType=TIMESTAMP}, activitynumber= #{activitynumber,jdbcType=INTEGER}, " +
            "activityjoinnumber=#{activityjoinnumber,jdbcType=INTEGER}, activityintegral=#{activityintegral,jdbcType=INTEGER}, activityimg=#{activityimg,jdbcType=VARCHAR}, userid=#{userid,jdbcType=VARCHAR}, " +
            "activityflag=0, activityid=#{activityid,jdbcType=INTEGER},activitydigest=#{activitydigest,jdbcType=VARCHAR}, organizationid=#{organizationid,jdbcType=VARCHAR} " +
            "where id = #{id,jdbcType=INTEGER}")
    int update(ActivityModelLookBack activityModel);
}
